package com.lhy.xiancheng;
//调用接口创建线程
public class DisplayMessage implements Runnable {

    private String message;

    public DisplayMessage(String message){
        this.message = message;
    }
    @Override
    public void run() {
        while (true) {
            System.out.println(message);
        }
    }
}
